package Presentacion.Recursos.Tabla;
import java.awt.Color;
import java.awt.Component;

import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JTable;
import javax.swing.SwingConstants;
import javax.swing.table.TableCellRenderer;


public class HeaderRender extends JLabel implements TableCellRenderer {
	
	public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected,
		boolean hasFocus, int rowIndex, int vColIndex) {
		setText(value.toString());
		setToolTipText((String) value);
		this.setForeground(Color.white);
		this.setBackground(new Color(49,49,49));
		this.setOpaque(true);
		this.setBorder(BorderFactory.createMatteBorder(1,0,1,1,new Color(28,21,19)));
		this.setHorizontalAlignment(SwingConstants.LEFT);
		return this;
	}
}